Method for generating terminal log and terminal

ABSTRACT

Embodiments of the present invention provide a method for generating a terminal log and a terminal. The method includes: obtaining sensor information and/or use information of a mobile terminal; generating first log information according to the sensor information and/or the use information; receiving second log information input by a user; and combining the first log information with the second log information to generate terminal log information; the terminal may receive modification information input by the user and update the first log information according to the modification information. In the embodiments of the present invention, by obtaining related information, a log is automatically generated; and in combination with a modification of a user and a log written by the user, it is ensured that log content required by the user is accurately obtained.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Patent ApplicationNo. PCT/CN2013/074191, filed on Apr. 15, 2013, which claims priority toChinese Patent Application No. 201210363473.9, filed on Sep. 26, 2012,both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present invention relates to the field of communicationtechnologies, and in particular, to a method for generating a terminallog and a terminal.

BACKGROUND

With the popularity of smart terminals, a user may record activities andevents within a period of time by using a smart terminal.

In the prior art, a smart terminal can generate a user log by collectinginformation such as terminal use records, working records, and liferecords of a user every day, and performing relevant text processing.

In a process of implementing embodiments of the present invention, theinventors find that content of the user log generated by the terminalcannot accurately record activities or events of the user.

SUMMARY

Embodiments of the present invention provide a method for generating aterminal log and a terminal, for accurately obtaining an activity orevent of a user.

In a first aspect, an embodiment of the present invention provides amethod for generating a terminal log, including:

obtaining sensor information and/or use information of a mobileterminal;

generating first log information according to the sensor informationand/or the use information;

receiving second log information input by a user; and

combining the first log information with the second log information togenerate terminal log information.

With reference to the first aspect, the combining the first loginformation with the second log information to generate terminal loginformation includes:

generating the terminal log information according to a time sequenceand/or content correlation of content recorded by the first loginformation and the second log information.

After the generating first log information according to the sensorinformation and/or the user use information, the method furtherincludes:

receiving modification information input by the user; and

updating the first log information according to the modificationinformation.

The sensor information includes any one of the following information ora combination of multiple of the following information: accelerationinformation of the terminal, location information of the terminal, anddirection information of the terminal.

The use information includes any one type of the following informationor a combination of multiple types of the following information: callrecord information, short message record information, network connectioninformation of the terminal, and system process information of theterminal.

The generating first log information according to the sensor informationand/or the user use information includes: obtaining an activity and/oran event of the user by performing analysis using a set analysis policyaccording to the sensor information and/or the user use information; and

generating the first log information for describing the activity and/orthe event of the user by using a set generation policy according to theactivity and/or the event of the user obtained by performing theanalysis using the set analysis policy.

After the updating the first log information according to themodification information, the method further includes:

comparing the modification information with the first log informationbefore the updating; and

adjusting the set analysis policy according to a result of thecomparing, and/or adjusting the generation policy according to a resultof the comparing.

In a second aspect, the present invention provides a terminal,including:

an obtaining module, configured to obtain sensor information and/or useinformation of the terminal;

a generating module, configured to generate first log informationaccording to the sensor information and/or the use information;

a first receiving module, configured to receive second log informationinput by a user; and

a combining module, configured to combine the first log information withthe second log information to generate terminal log information.

With reference to the second aspect, the combining module is configuredto generate the terminal log information according to a time sequenceand/or content correlation of content recorded by the first loginformation and the second log information.

With reference to the second aspect, the terminal further includes:

a second receiving module, configured to receive modificationinformation input by the user; and

an updating module, configured to update the first log informationaccording to the modification information.

The sensor information that the obtaining module is configured to obtainincludes any one of the following information or a combination ofmultiple of the following information: acceleration information of theterminal, location information of the terminal, and directioninformation of the terminal.

The user use information that the obtaining module is configured toobtain includes any one of the following information or a combination ofmultiple of the following information: call record information, shortmessage record information, network connection information of theterminal, and system process information of the terminal.

The generating module is configured to obtain an activity and/or anevent of the user by performing analysis using a set analysis policyaccording to the sensor information and/or the user use information; and

generating the first log information for describing the activity and/orthe event of the user by using a set generation policy according to theactivity and/or the event of the user obtained by performing analysis.

With reference to the second aspect, the terminal further includes:

a comparing module, configured to compare the modification informationwith the first log information before the updating; and

an adjusting module, configured to adjust the set analysis policyaccording to a result of the comparing, and/or adjust the generationpolicy according to a result of the comparing.

In a third aspect, the present invention provides a terminal, including:

a receiver, configured to obtain sensor information and/or useinformation of the terminal; and configured to receive second loginformation input by a user; and

a processor, configured to generate first log information according tothe sensor information and/or the use information; and configured tocombine the first log information with the second log information togenerate terminal log information.

With reference to the third aspect, the processor is configured togenerate the terminal log information according to a time sequenceand/or content correlation of content recorded by the first loginformation and the second log information.

The receiver is further configured to receive modification informationinput by the user; and

the processor is further configured to update the first log informationaccording to the modification information.

The sensor information that the receiver is configured to obtainincludes any one of the following information or a combination ofmultiple of the following information: acceleration information of theterminal, location information of the terminal, and directioninformation of the terminal.

The user use information that the receiver is configured to obtainincludes any one of the following information or a combination ofmultiple of the following information: call record information, shortmessage record information, network connection information of theterminal, and system process information of the terminal.

The processor is configured to obtain an activity and/or an event of theuser by performing analysis using a set analysis policy according to thesensor information and/or the user use information; and

generating the first log information for describing the activity and/orthe event of the user by using a set generation policy according to theactivity and/or the event of the user obtained by performing theanalysis using the set analysis policy.

The processor is further configured to compare the modificationinformation with the first log information before the updating; and

configured to adjust the set analysis policy according to a result ofthe comparing, and/or adjust the generation policy according to a resultof the comparing.

In the embodiments of the present invention, the terminal, by obtainingsensor information and/or user use information and combining a loggenerated by the terminal with a log written by a user, ensures that anactivity or event of the user is accurately obtained.

BRIEF DESCRIPTION OF DRAWINGS

To illustrate the technical solutions in the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showmerely some embodiments of the present invention, and persons ofordinary skill in the art may still derive other drawings from theseaccompanying drawings without creative efforts.

FIG. 1 is a schematic flowchart of Embodiment 1 of a method forgenerating a terminal log according to the present invention;

FIG. 2 is a schematic flowchart of Embodiment 2 of a method forgenerating a terminal log according to the present invention;

FIG. 3 is a schematic structural diagram of Embodiment 1 of a terminalaccording to the present invention;

FIG. 4 is a schematic structural diagram of Embodiment 2 of a terminalaccording to the present invention;

FIG. 5 is a schematic structural diagram of Embodiment 3 of a terminalaccording to the present invention; and

FIG. 6 is a schematic structural diagram of Embodiment 1 of anotherterminal according to the present invention.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of theembodiments of the present invention more comprehensible, the followingclearly describes the technical solutions in the embodiments of thepresent invention with reference to the accompanying drawings in theembodiments of the present invention. Apparently, the describedembodiments are merely a part rather than all of the embodiments of thepresent invention. All other embodiments obtained by persons of ordinaryskill in the art based on the embodiments of the present inventionwithout creative efforts shall fall within the protection scope of thepresent invention.

FIG. 1 is a schematic flowchart of Embodiment 1 of a method forgenerating a terminal log according to the present invention. As shownin FIG. 1, the method includes the following:

S10. Obtain sensor information and/or user use information of a mobileterminal.

The sensor information may include any one type of the followinginformation or a combination of multiple types of the followinginformation: acceleration information of the terminal, locationinformation of the terminal, and direction information of the terminal,but is not limited thereto. It should be noted that the sensorinformation may be obtained by the mobile terminal by using varioussensors configured thereon, such as a Global Positioning System (GPS)sensor and an acceleration sensor. In a specific implementation process,each type of information described above is recorded in a specificformat. For example, location information at a time point obtained inthe GPS sensor may be represented as {time, longitude, latitude,altitude}. Acceleration information at a time point obtained in theacceleration sensor may be represented as {time, x-axis acceleration,y-axis acceleration, z-axis acceleration}.

The user use information may include any one type of the followinginformation or a combination of multiple types of the followinginformation: user call record information, user short message recordinformation, network connection information of the terminal, and systemprocess information of the terminal, but is not limited thereto. Theobtained user call record information may include call start time, callend time, call duration, calling number, called number, and the like.The obtained short message record information may include short messagereceiving time, length of a received short message, short messagesending time, length of a sent short message, and the like. The obtainednetwork connection information may include a connection situation wherethe mobile terminal is connected to a wireless access point or a basestation by using a Wireless Fidelity (Wi-Fi) network or a thirdgeneration (3G) communication technology network, and may specificallybe an ID, a name, signal strength of a Wi-Fi node or 3G node, and thelike. The system process information may include a process that themobile terminal is running and resource usage of the process, such as acentral processing unit (CPU) and a memory. The mobile terminal hereperforms recording according to a specific operation of a user and byusing a specified format. For example, each piece of user call recordinformation may be represented as {time, local mobile phone state, peermobile phone state, local mobile phone setting state, peer mobile phoneID}. A more specific piece of call record information may be {time, callreceived, calling, mobile phone ringing, peer mobile phone ID}.

S20. Generate first log information according to the sensor informationand/or the user use information.

The terminal may obtain an activity or an event of the user byperforming analysis using a set analysis policy according to the sensorinformation and/or the user use information. The analysis policy heremay be pattern recognition, machine learning, rule setting, and thelike, but is not limited thereto. Taking an acceleration sensor as anexample, the terminal obtains acceleration sensor information {time 1,x1, y1, z1}, {time 2, x2, y2, z2}, {time 3, x3, y3, z3}, . . . by usingthe acceleration sensor; and uses a specific algorithm to recognize{start time 1, end time 1: action 1, action 2}, {start time 2, end time2: action 1, action 2}, {start time 3, end time 3: action 1, action 2},. . . that is, the acceleration sensor information is recognized,depending on the magnitude of acceleration within a period of time, as aspecific action such as walking, running, jumping, and the like.Finally, according to a predefined rule, a result that “xxx is runningbetween 9:00 to 9:15 in the morning” may be obtained. It should be notedthat a speed range may be set in the predefined rule. For example, whenthe moving acceleration of a user is between x m/s² and y m/s², it maybe deemed that the user is running; however, the present invention isnot limited thereto.

Furthermore, the terminal may also generate, according to the activityand/or the event of the user obtained by performing analysis and byusing a set generation policy, the first log information for describingthe activity and/or the event of the user. A rule may be predefined inthe generation policy according to the requirements of the user, therebycombining and filtering the obtained activity and/or event information.For example, in the process mentioned above, information “the user keepswalking between 8:00 and 9:00 in the morning” may be obtained. Suchinformation having no actual meaning may be deleted when a log isgenerated. Moreover, analysis is performed according to timeinformation. The information within the same period of time is combinedaccording to the comprehensiveness of the sensor information and theuser use information. For example, according to the comprehensiveness ofthe information obtained from the acceleration sensor and the user callinformation, it is determined that “xxx1 talks with xxx2 between 9:00and 9:30, and xxx1 is exercising intensely, and may probably be runningaccording to the acceleration sensor”.

S30. Receive second log information input by a user.

Specifically, the user may write a log on the mobile terminal, which mayinclude a text, an image, and the like.

S40. Combine the first log information with the second log informationto generate terminal log information.

That is, the log automatically generated by the mobile terminal and thelog written by the user are combined after correlation analysis, wherethe terminal log information may be generated according to a timesequence and/or content correlation of content recorded by the first loginformation and the second log information.

For example, first log information generated automatically by theterminal is “the mobile phone is muted between 9:00 and 9:50 on Sep. 1,2012. xxx calls at 9:40 with no answer”. Second log information writtenby the user is “participate in a weekly routine meeting between 9:00 and10:00 today”. After a combination, the obtained terminal log informationis “participate in the weekly routine meeting between 9:00 and 10:00today, and the mobile phone is muted between 9:00 and 9:50. xxx calls at9:40 with no answer”.

It should be noted that the log information generated by the mobileterminal is generally a state or an action of the user at a time point,and the log written by the user generally records content within aperiod of time. In a combination process, a priority may be set so thatthe log written by the user is prior in the automatic combinationprocess.

In the embodiment, the mobile terminal, by obtaining related sensorinformation and/or user use information and combining a log generated bythe terminal with a log written by a user, ensures that an activity orevent of the user is accurately obtained.

In addition, the terminal may also, after generating the first loginformation according to the sensor information and/or the user useinformation, update the first log information according to a receivedmodification input by the user.

In a specific implementation process, the mobile terminal may displaythe generated first log information to the user, and the user may editand modify the first log information according to a specific situation,to generate the updated first log information. The log may beclassified, for example, be classified into a sport log and a healthlog, for the user to view conveniently.

In addition, after the first log information is updated according to themodification information, the modification information is compared withthe first log information before the updating.

The set analysis policy is adjusted according to a result of thecomparing, and/or the generation policy is adjusted according to aresult of the comparing.

For example, first log information generated by the mobile terminal is“walking from 9:00 to 10:00 in the morning”, and the user modifies it to“jogging from 9:00 to 9:30 in the morning, and walking from 9:30 to10:00”. The reason may be that a speed range set for walking may be toolarge. Then, the mobile terminal may adjust, according to the modifiedlog information, the speed range for determining that the user iswalking, which is set in the analysis policy.

It should be noted that when the first log information and the secondlog information are combined, the first log information that is updatedand modified by the user may be used.

FIG. 2 is a schematic flowchart of Embodiment 2 of a method forgenerating a terminal log according to the present invention. As shownin FIG. 2, according to the description of the foregoing embodiment, thewhole process of the method is as follows:

S201. Obtain sensor information and/or user use information of a mobileterminal.

S202. Analyze the obtained information by using an analysis policy toobtain an activity and/or an event of a user.

S203. Automatically generate a log by using a generation policy.According to the result of the above analysis, generate the logautomatically.

S204. Display the automatically generated log to the user and receive amodification made by the user.

S205. Compare the log modified by the user with the log before themodification.

S206. Feed back a result of the comparing, and correspondingly modifyand update the analysis policy and the generation policy automatically.

S207. Combine the modified log with a log written by the user to obtaina final terminal log.

It should be noted that the execution process described above is notfixed, where if the user does not modify the automatically generatedlog, no comparison is required; and if the user does not write a log, nocombination processing is required, and the final terminal log may bedirectly obtained.

In the embodiment, the mobile terminal may automatically generate a logby obtaining related sensor information and user use information, acceptthe editing and modification made by the user, and combine the log witha log written by the user, which not only reduces the time for the userto write a log, but also achieves accurate obtaining of an activity orevent of the user. In addition, by comparing the information before andafter the user makes the modification, the set analysis policy andgeneration policy are automatically adjusted, which can continuouslyimprove the accuracy of obtaining the activity or the event of the user.

FIG. 3 is a schematic structural diagram of Embodiment 1 of a terminalaccording to the present invention. As shown in FIG. 3, the terminalincludes an obtaining module 301, a generating module 302, a firstreceiving module 303, and a combining module 304.

The obtaining module 301 is configured to obtain sensor informationand/or user use information of a mobile terminal.

The generating module 302 is configured to generate first loginformation according to the sensor information and/or the user useinformation.

The first receiving module 303 is configured to receive second loginformation input by a user.

The combining module 304 is configured to combine the first loginformation with the second log information to generate terminal loginformation.

Specifically, the sensor information that the obtaining module 301 isconfigured to obtain includes any one type of the following informationor a combination of multiple types of the following information:acceleration information of the terminal, location information of theterminal, and direction information of the terminal. The user useinformation that the obtaining module 301 is configured to obtainincludes any one type of the following information or a combination ofmultiple types of the following information: user call recordinformation, user short message record information, network connectioninformation of the terminal, and system process information of theterminal.

The combining module 304 is configured to generate the terminal loginformation according to a time sequence and/or content correlation ofcontent recorded by the first log information and the second loginformation.

For operations of the modules, refer to the foregoing methodembodiments, which will not be described repeatedly herein.

In the embodiment, the terminal generates a first log by usinginformation obtained by the obtaining module, and then combines, byusing the combining module, the first log with a log written by theuser, so that an activity or event of the user can be accuratelyobtained.

In addition, the generating module 302 is specifically configured toobtain an activity and/or an event of the user by performing analysisusing a set analysis policy according to the sensor information and/orthe user use information; and

according to the activity and/or the event of the user obtained byperforming analysis, generate, by using a set generation policy, thefirst log information for describing the activity and/or the event ofthe user.

FIG. 4 is a schematic structural diagram of Embodiment 2 of a terminalaccording to the present invention. As shown in FIG. 4, on the basis ofFIG. 3, the terminal further includes a second receiving module 305 andan updating module 306.

The second receiving module 305 is configured to receive modificationinformation input by the user.

The updating module 306 is configured to update the first loginformation according to the modification information.

For operations of the modules, refer to the foregoing methodembodiments, which will not be described repeatedly herein.

FIG. 5 is a schematic structural diagram of Embodiment 3 of a terminalaccording to the present invention. As shown in FIG. 5, on the basis ofFIG. 4, the terminal further includes a comparing module 307 and anadjusting module 308.

The comparing module 307 is configured to compare the modificationinformation with the first log information before the updating.

The adjusting module 308 is configured to adjust the set analysis policyaccording to a result of the comparing, and/or adjust the generationpolicy according to a result of the comparing.

For operations of the modules, refer to the foregoing methodembodiments, which will not be described repeatedly herein.

In the embodiment, the terminal, on the basis of automaticallygenerating a log, may also receive modification information of the user;the updating module thereof may update the automatically generated logaccording to the modification information; and in combination with a logwritten by the user, an activity or event of the user can be accuratelyobtained. In addition, the comparing module compares the informationbefore and after the user makes the modification, and the adjustingmodule automatically adjusts the set analysis policy and generationpolicy, which can continuously improve the accuracy of obtaining theactivity or the event of the user.

FIG. 6 is a schematic structural diagram of another terminal accordingto Embodiment 1 of the present invention. As shown in FIG. 6, theterminal includes a receiver 601 and a processor 602.

The receiver 601 is configured to obtain sensor information and/or useruse information of a mobile terminal; and

configured to receive second log information input by a user.

The processor 602 is configured to generate first log informationaccording to the sensor information and/or the user use information; and

configured to combine the first log information with the second loginformation to generate terminal log information.

In a specific implementation process, the processor 602 is specificallyconfigured to generate the terminal log information according to a timesequence and/or content correlation of content recorded by the first loginformation and the second log information.

Specifically, the following operations may be performed: obtaining anactivity and/or an event of the user by performing analysis using a setanalysis policy according to the sensor information and/or the user useinformation; and

generating the first log information for describing the activity and/orthe event of the user by using a set generation policy according to theactivity and/or the event of the user obtained by performing analysis.

The sensor information that the receiver 601 is configured to obtainincludes any one type of the following information or a combination ofmultiple types of the following information: acceleration information ofthe terminal, location information of the terminal, and directioninformation of the terminal.

The user use information that the receiver 601 is configured to obtainincludes any one type of the following information or a combination ofmultiple types of the following information: user call recordinformation, user short message record information, network connectioninformation of the terminal, and system process information of theterminal.

For specific operations of the receiver and processor, refer to theforegoing method embodiments, which will not be described repeatedlyherein.

In the embodiment, the terminal generates a first log by usinginformation obtained by the receiver, and then combines, by using theprocessor, the first log with a log written by the user, so that anactivity or event of the user can be accurately obtained.

In addition, the receiver 601 is further configured to receivemodification information input by the user, and the processor 602 isfurther configured to update the first log information according to themodification information.

In a specific implementation process, the processor 602 is furtherconfigured to compare the modification information with the first loginformation before the updating; and

configured to adjust the set analysis policy according to a result ofthe comparing, and/or adjust the generation policy according to a resultof the comparing.

For specific operations of the receiver and processor, refer to theforegoing method embodiments, which will not be described repeatedlyherein.

In the embodiment, the terminal, on the basis of automaticallygenerating a log, may use the receiver to further receive modificationinformation of the user; the processor thereof may update theautomatically generated log according to the modification information;and in combination with a log written by the user, it is ensured that anactivity or event of the user is accurately obtained. In addition, theprocessor further automatically adjusts the set analysis policy andgeneration policy by comparing the information before and after the usermakes the modification, which can continuously improve the accuracy ofobtaining the activity or event of the user.

Persons of ordinary skill in the art may understand that, all or a partof the steps in each of the foregoing method embodiments may beimplemented by a program instructing relevant hardware. Theaforementioned program may be stored in a computer readable storagemedium. When the program runs, the steps of the foregoing methodembodiments are performed. The foregoing storage medium includes anymedium capable of storing program codes, such as a ROM, a RAM, amagnetic disk, or an optical disk.

Finally, it should be noted that the foregoing embodiments are merelyintended for describing the technical solutions of the presentinvention, rather than limiting the present invention. Although thepresent invention is described in detail with reference to the foregoingembodiments, persons of ordinary skill in the art should understand thatthey may still make modifications to the technical solutions describedin the foregoing embodiments, or make equivalent replacements to some orall the technical features thereof, as long as such modifications orreplacements do not cause the essence of corresponding technicalsolutions to depart from the scope of the technical solutions of theembodiments of the present invention.

What is claimed is:
 1. A method for generating a terminal log,comprising: obtaining at least one of sensor information and useinformation of a mobile terminal; generating first log informationaccording to the at least one of the sensor information and the useinformation; receiving second log information input by a user; andcombining the first log information with the second log information togenerate terminal log information.
 2. The method according to claim 1,wherein combining the first log information with the second loginformation to generate the terminal log information comprises:generating the terminal log information according to at least one of atime sequence and content correlation of content recorded by the firstlog information and the second log information.
 3. The method accordingto claim 1, wherein after generating the first log information accordingto the at least one of the sensor information and the use information,the method further comprises: receiving modification information inputby the user; and updating the first log information according to themodification information.
 4. The method according to claim 3, whereinthe sensor information comprises any one of the following information ora combination of multiple of the following information: accelerationinformation of the terminal, location information of the terminal, anddirection information of the terminal.
 5. The method according to claim3, wherein the use information comprises any one of the followinginformation or a combination of multiple of the following information:call record information, short message record information, networkconnection information of the terminal, and system process informationof the terminal.
 6. The method according to claim 3, wherein generatingthe first log information according to the at least one of the sensorinformation and the use information comprises: obtaining at least one ofan activity and an event of the user, by performing analysis using a setanalysis policy according to the at least one of the sensor informationand the use information; and generating the first log information fordescribing the at least one of the activity and the event of the user byusing a set generation policy according to the at least one of theactivity and the event of the user obtained by performing the analysisusing the set analysis policy.
 7. The method according to claim 6,wherein after updating the first log information according to themodification information, the method further comprises: comparing themodification information with the first log information before theupdating; and adjusting at least one of the set analysis policy and theset generation policy according to a result of the comparing.
 8. Aterminal, comprising: an obtaining module, configured to obtain at leastone of sensor information and use information of the terminal; agenerating module, configured to generate first log informationaccording to the at least one of the sensor information and the useinformation; a first receiving module, configured to receive second loginformation input by a user; and a combining module, configured tocombine the first log information with the second log information togenerate terminal log information.
 9. The terminal according to claim 8,wherein the combining module is configured to generate the terminal loginformation according to at least one of a time sequence and contentcorrelation of content recorded by the first log information and thesecond log information.
 10. The terminal according to claim 8, furthercomprising: a second receiving module, configured to receivemodification information input by the user; and an updating module,configured to update the first log information according to themodification information.
 11. The terminal according to claim 10,wherein the sensor information comprises any one of the followinginformation or a combination of multiple of the following information:acceleration information of the terminal, location information of theterminal, and direction information of the terminal.
 12. The terminalaccording to claim 10, wherein the use information comprises any one ofthe following information or a combination of multiple of the followinginformation: call record information, short message record information,network connection information of the terminal, and system processinformation of the terminal.
 13. The terminal according to claim 10,wherein the generating module is configured to obtain at least one of anactivity and an event of the user by performing analysis using a setanalysis policy according to the at least one of the sensor informationand the use information; and generating the first log information fordescribing the at least one of the activity and the event of the user byusing a set generation policy according to the at least one of theactivity and the event of the user obtained by performing the analysisusing the set analysis policy.
 14. The terminal according to claim 13,further comprising: a comparing module, configured to compare themodification information with the first log information before theupdating; and an adjusting module, configured to adjust at least one ofthe set analysis policy and the set generation policy according to aresult of the comparing.
 15. A terminal, comprising: a receiver,configured to: obtain at least one of sensor information and useinformation of the terminal; and, configured to receive second loginformation input by a user; and a processor, configured to generatefirst log information according to the at least one of the sensorinformation and the use information; and, configured to combine thefirst log information with the second log information to generateterminal log information.
 16. The terminal according to claim 15,wherein the processor is further configured to generate the terminal loginformation according to at least one of a time sequence and contentcorrelation of content recorded by the first log information and thesecond log information.
 17. The terminal according to claim 15, whereinthe receiver is further configured to receive modification informationinput by the user; and the processor is further configured to update thefirst log information according to the modification information.
 18. Theterminal according to claim 17, wherein the sensor information that thereceiver is configured to obtain comprises any one of the followinginformation or a combination of multiple of the following information:acceleration information of the terminal, location information of theterminal, and direction information of the terminal.
 19. The terminalaccording to claim 17, wherein the use information that the receiver isconfigured to obtain comprises any one of the following information or acombination of multiple of the following information: call recordinformation, short message record information, network connectioninformation of the terminal, and system process information of theterminal.
 20. The terminal according to claim 17, wherein the processoris further configured to obtain at least one of an activity and an eventof the user by performing analysis using a set analysis policy accordingto the at least one type of the sensor information and the user useinformation; and generating the first log information for describing theat least one of the activity and the event of the user by using a setgeneration policy according to the at least one of the activity and theevent of the user obtained by performing the analysis using a setanalysis policy.
 21. The terminal according to claim 20, wherein theprocessor is further configured to: compare the modification informationwith the first log information before the updating; and adjust at leastone of the set analysis policy and the generation policy according to aresult of the comparing.